package com.xgp.demo01;

import java.util.concurrent.TimeUnit;

public class Test1 {
    public static void main(String[] args) throws InterruptedException {
        //1,获取CPU核数
        // CPU密集型 IO密集型
        System.out.println(Runtime.getRuntime().availableProcessors());

        TimeUnit.MINUTES.wait(1);

    }
}
